package fr.emn.nuitinfo.web.resources;

import org.restlet.resource.Post;
import org.restlet.resource.ServerResource;

import fr.emn.nuitinfo.model.persistence.FactoryDAO;

public class EtapeValidationResource extends ServerResource {

    @Post
    public String retrieveByName(String reponse) {
	String nom = (String) getRequest().getAttributes().get("nom");
	return ""+FactoryDAO.getEtapeDAO().retrieveByName(nom).valider(reponse);
    }

}
